import { Dimensions } from 'react-native';

export const screenWidth = Dimensions.get('window').width;

export const screenHeight = Dimensions.get('window').height;
// 设计稿宽度
const tempWidth = 750;
// px转dp
export const pxToDp = (px) => screenWidth * px / tempWidth;  